package com.woniuxy.yoga.service.impl;

import com.woniuxy.yoga.pojo.Orders;
import com.woniuxy.yoga.mapper.OrdersMapper;
import com.woniuxy.yoga.service.OrdersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author axq
 * @since 2020-10-28
 */
@Service
@Transactional
public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, Orders> implements OrdersService {
    @Autowired
    private OrdersMapper ordersMapper;

    @Override
    public Integer getCourseByOrderId(Integer ordered) {
        return ordersMapper.getCourseByOrderId(ordered);
    }
}
